package com.beiben.work.hours.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文件工时管理对象 work_file_hours
 * 
 * @author xgq
 * @date 2020-08-26
 */
public class FileHours extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long fileId;

    /** 文件名称 */
    @Excel(name = "文件名称")
    private String name;

    /** 工作时长 */
    @Excel(name = "工作时长")
    private BigDecimal fileHours;

    /** 分类 */
    private String groupType;

    /**
     * 所属机构
     */
    private Long[] deptIds;
    /*
    * 所属机构（查询条件）
    * */
    private Long deptId;

    /*
    * 所属用户（查询条件）
    * */
    private Long userId;

    /** 状态 */
    @Excel(name = "状态")
    private Integer state;

    public void setFileId(Long fileId) 
    {
        this.fileId = fileId;
    }

    public Long getFileId() 
    {
        return fileId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setFileHours(BigDecimal fileHours) 
    {
        this.fileHours = fileHours;
    }

    public BigDecimal getFileHours() 
    {
        return fileHours;
    }
    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }

    public String getGroupType() {
        return groupType;
    }

    public void setGroupType(String groupType) {
        this.groupType = groupType;
    }

    public Long[] getDeptIds() {
        return deptIds;
    }

    public void setDeptIds(Long[] deptIds) {
        this.deptIds = deptIds;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("fileId", getFileId())
            .append("name", getName())
            .append("fileHours", getFileHours())
            .append("state", getState())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
